<extend name="Public/baseConf" />
<block name="style">
 	<link rel="stylesheet" type="text/css" href="__CSS__/{$Think.config.COLOR_STYLE}.css" media="all">
</block>
<block name="body">
<div class="page-content">
	<div class="page-header"><h1>生成模型</h1></div>
	<!-- 标签页导航 --> 
		<!-- 表单 -->
		<form id="form" action="{:U('generate')}" method="post" class="form-horizontal doc-modal-form">
			<!-- 基础 --> 
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right">数据表<small>（当前数据库的所有表）</small></label>
				<div class="col-sm-4">
					<select name="table"  class="col-sm-12">
						<volist name="tables" id="tb">
							<option value="{$tb}">{$tb}</option>
						</volist>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right">模型标识<small>（模型英文标识）</small></label>
				<div class="col-sm-4">
					<input type="text"  class="col-sm-12" name="name" value="">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right">模型名称<small>（模型名称）</small></label>
				<div class="col-sm-4">
					<input type="text"  class="col-sm-12" name="title" value="">
				</div>
			</div>
			<!-- 按钮 -->
			<div class="footer">
				<div class="footer-inner">
					<div class="footer-content">
		 			    <input type="hidden" name="id" value="{$id}"/>
				 		<button class="btn btn-white btn-round  btn-primary ajax-post" type="submit" target-form="form-horizontal">
							<i class="fa fa-floppy-o align-top bigger-120"></i>保存
						</button>
						<a class="btn btn-white btn-round  btn-warning"  onclick="javascript:history.back(-1);return false;">
							<i class="fa fa-reply icon-only bigger-120"></i>返回
						</a>
					</div>
				</div>
			</div> 
		</form>
</div>
</block>
<block name="script">
<script type="text/javascript" src="__STATIC__/jquery.dragsort-0.5.1.min.js"></script>
</block>

